<template>
  <div class="dv1">
    <van-nav-bar
      title="标题"
      left-text="返回"
      right-text="新建地址"
      left-arrow
      @click-left="onClickLeft"
      @click-right="onClickRight"
    />
  </div>
</template>

<script>
export default {
  data() {
    return {
      list: [],
      tokens: JSON.stringify(localStorage.getItem("token")),
    };
  },
  mounted() {
    // console.log(this.tokens);
    // this.$API.getvolume({ token: this.tokens }).then((res) => {
    //   console.log(res);
    // });

    //   getyouhui
    // this.$API.getyouhui({ token: tokens }).then((res) => {
    //   this.$router.push({ path: "/home" });
    // });
  },
  methods: {
    onClickLeft() {
      console.log(123);
      this.$router.go(-1);
    },
    onClickRight(){
      
    }
  },
};
</script>

<style lang="scss" scoped>
.dv1{
  margin-top: 8vh;
}
</style>